package com.example.birdfriends.dao;

import com.example.birdfriends.pojo.follow.Follower;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface FollowDao {
    public int addFollow(Follower follower);
    public int deleteFollowByFid(@Param("fid") Long fid);
    public List<Long> findFollowedUidsByCurUid(@Param("curLoginUid") Long curLoginUid);  // 当前用户所关注的用户的id
    public Long findFidByCurUidAndFollowedUid(@Param("curLoginUid") Long curLoginUid, @Param("followedUid") Long followedUid);
}
